     
  var mySwiper = new Swiper ('.swiper-container', {
    direction: 'horizontal', // 垂直切换选项
    speed:1500,
    loop: true, // 循环模式选项
    effect : 'fade',
    autoplay: {
        delay: 3000,//1秒切换一次
      },
    // 如果需要分页器
    pagination: {
        el: '.swiper-pagination',
        dynamicBullets: true,
        clickable: true,
        clickableClass : 'my-pagination-clickable',
      },
    
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    //前进后退按钮
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      
  })      
  mySwiper.el.onmouseover=function(){
    mySwiper.navigation.$nextEl.removeClass('hide');
    mySwiper.navigation.$prevEl.removeClass('hide');
  }
  mySwiper.el.onmouseout=function(){
    mySwiper.navigation.$nextEl.addClass('hide');
    mySwiper.navigation.$prevEl.addClass('hide');
  } 
  
